<template>
  <div class="back-button">
    <el-button @click="goBack" type="text" size="small">
      <i class="el-icon-arrow-left"></i> 返回上一页
    </el-button>
  </div>
</template>

<script>
export default {
  name: 'BackButton',
  methods: {
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>
.back-button {
  margin: 10px 0;
  text-align: left;
}
</style>